import request from '/src/utils/request'

export function list(data) {
  return request.post('/order_service/api/prescriptionOrder/index', data)
}

/*枚举接口*/
export function enums(data) {
  return request.post('/order_service/api/prescriptionOrder/getEnums', data)
}

/*详情接口*/
export function orderInfo(data) {
  return request.post('/order_service/api/prescriptionOrder/orderInfo', data)
}

/*详情-处方订单节点*/
export function orderNode(data) {
  return request.post('/order_service/api/prescriptionOrder/orderNode', data)
}

/*详情-患者/订单信息*/
export function orderPatient(data) {
  return request.post('/order_service/api/prescriptionOrder/orderPatient', data)
}


/*详情-医生信息*/
export function orderDoctorAss(data) {
  return request.post('/order_service/api/prescriptionOrder/orderDoctorAss', data)
}

/*详情 - 药费、加工费、快递费、诊金、重量*/
export function orderCost(data) {
  return request.post('/order_service/api/prescriptionOrder/orderCost', data)
}

/*详情-查看处方/药师审核详情*/
export function pharmacistExamineShow(data) {
  return request.post('/order_service/api/prescriptionOrder/pharmacistExamineShow', data)
}

/*详情-处方详情*/
export function prescriptionInfo(data) {
  return request.post('/order_service/api/prescriptionOrder/prescriptionInfo', data)
}

/*详情-加工费详情*/
export function prescriptionProcess(data) {
  return request.post('/order_service/api/prescriptionProcess/index', data)
}

/*详情-详情-切换药态列表*/
export function listUnionProcess(data) {
  return request.post('/drug_service/api/drug/store/listUnionProcess', data)
}

/*详情-详情-切换药房*/
export function switchDrugstoreProcess(data) {
  return request.post('/drug_service/api/drug/store/switchDrugstoreProcess', data)
}

/*详情-修改-计算煎煮方式金额*/
export function cook(data) {
  return request.post('/order_service/api/prescription/cook', data)
}

/*详情-修改-检验处方信息*/
export function check(data) {
  return request.post('/order_service/api/prescription/check', data)
}

/*详情-修改-更新处方信息*/
export function update(data) {
  return request.post('/order_service/api/prescription/update', data)
}

/*详情-退款补收-详情*/
export function refundFixPage(data) {
  return request.post('/order_service/api/prescriptionRefund/refundFixPage', data)
}

/*属地接口*/
export function mechanism(data) {
  return request.post('/users_service/api/mechanism/search', data)
}

/*更新辨病辩证诊断*/
export function upDiagnosis(data) {
  return request.post('/order_service/api/prescriptionOrder/upDiagnosis', data)
}
